import { SceneManager } from "@/managers/SceneManager.js";
import { Scene_Boot } from "@/scenes/Scene_Boot.js";

if(document.readyState=='complete'){
    SceneManager.run(Scene_Boot);
}else{
    window.onload=()=>{
        SceneManager.run(Scene_Boot);
    }
}

window.onkeydown=(e)=>{
    if(e.key=='Enter'){
        SceneManager.terminate();
    }
}

window.onbeforeunload=(e)=>{
    SceneManager.terminate();
}